package com.example.demo;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDialog;
import androidx.appcompat.widget.AppCompatEditText;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.appcompat.widget.AppCompatRatingBar;
import androidx.appcompat.widget.AppCompatTextView;

import android.app.ProgressDialog;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.ProgressBar;
import android.widget.Toast;

import org.w3c.dom.Text;

import java.util.Objects;

public class MainActivity extends AppCompatActivity {

   private AppCompatImageView backImageView=null;
   private AppCompatImageView goImageView=null;
   private AppCompatImageView refreshImageView=null;
   private AppCompatImageView sendImageView=null;
   private AppCompatEditText linkEdiText=null;
   private WebView mainWebView=null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

       backImageView =findViewById(R.id.backImageView);
     goImageView=findViewById(R.id.goImageView);
     refreshImageView=findViewById(R.id.refreshImageView);
     sendImageView=findViewById(R.id.senImageView);
     linkEdiText=findViewById(R.id.linkEditTextView);
     mainWebView=findViewById(R.id.mainWebView);


        sendImageView.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                String mobile = Objects.requireNonNull(mobileEditText.getText()).toString();
                Toast.makeText(MainActivity.this, mobile,Toast.LENGTH_LONG).show();
            }
        });
    }
}
